import { LineString, MultiLineString, MultiPoint, Point, Polygon } from "ol/geom";

export function createPointGeometry(
  ...args: ConstructorParameters<typeof Point>
) {
  return new Point(...args);
}

export function createMultiPointGeometry(
  ...args: ConstructorParameters<typeof MultiPoint>
) {
  return new MultiPoint(...args);
}

export function createLineGeometry(...args: ConstructorParameters<typeof LineString>) {
  return new LineString(...args);
}

export function createMultiLineStringGeometry(
  ...args: ConstructorParameters<typeof MultiLineString>
) {
  return new MultiLineString(...args);
}

export function createPolygonGeometry(
  ...args: ConstructorParameters<typeof Polygon>
) {
  return new Polygon(...args);
}